package
{
	import flash.display.Sprite;
	import flash.events.MouseEvent;
	import flash.text.TextField;

	public class mousechildExample extends Sprite
	{
		public function mousechildExample()
		{
			var container:Sprite = new Sprite();
			container.name = "container";
			addChild(container);
			
			var circle:Sprite = new Sprite();
			circle.name = "circle";
			circle.graphics.beginFill(0xFFCCff);
			circle.graphics.drawCircle(40, 40, 40);
			
			container.addChild(circle);
			
//			container.mouseChildren = false;
			
			container.addEventListener(MouseEvent.CLICK, clicked);
		}

		 public function clicked(event:MouseEvent):void {
		    trace(event.target.name); // container
		    var t:TextField = new TextField();
		    t.text = event.target.name;
		    t.y += 20;
		    addChild(t);
		}

	}
}